package com.chujian.framework.exception;


import lombok.Getter;
import lombok.Setter;

/**
 * @author ：chujian
 * @date ：2020-07-22
 * 全局异常基类，自定义响应码异常
 */
@Getter
@Setter
public class BaseException extends RuntimeException {

    /**
     * 错误码
     */
    private Integer code;

    public BaseException(Integer code, String message) {
        super(message);
        this.code = code;
    }


}
